package com.stu;

import com.stu.config.BeanConfig;
import org.springframework.context.annotation.*;

/**
 * @author zy
 * @date 2025/3/31
 */
@ComponentScan(basePackages = {"com.stu.dao","com.stu.service"})  // 组件扫描
@Import(BeanConfig.class)  // 导入配置类
@ImportResource("classpath:spring/bean-config.xml")  // 导入xml配置
@Configuration  // 标注为配置类
public class MainConfig {
}
